import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity('tb_warehouse', {
  comment: '仓库表',
})
export class Warehouse {
  @PrimaryGeneratedColumn('increment', { comment: '自增主键', unsigned: true })
  id: number;

  @Column({ comment: '仓库名称' })
  name: string;

  @Column({ comment: '联系电话' })
  phone: string;

  @Column({ comment: '仓库坐标' })
  coordinates: string;

  @Column({ comment: '仓库地址' })
  address: string;

  @Column({ comment: '仓库状态' })
  status: string;
}
